import { post, get, put, _delete, postFrom } from '@/utils/request'

class HomeApi {
  /**
   * 查询设备信息
   */
  async getDeviceList() {
    const res = await post('/main/getDeviceList')
    return res
  }

  async getCameraList() {
    const res = await post('/main/getCameraList')
    return res
  }

  async getInitDevice() {
    const res = await post('/main/getInitDevice')
    return res
  }
  async editInitDevice(data) {
    const res = await postFrom('/main/editInitDevice',data)
    return res
  }
}

export default new HomeApi()
